@section('title')
    律团资料 @parent
@show
@section('content')
<!-- Top Navbar-->
<div class="navbar theme-white no-border">
	<div class="navbar-inner">		
		<div class="left"><a href="{{ route('group.index', $sns_group->id) }}" class="external icon-only link"> <i class="icon icon-back"></i></a></div>
		<div class="center sliding">{{ $sns_group->group_name }}</div>
	</div>
</div>

 <div class="pages navbar-through toolbar-through">
	<!-- Page, data-page contains page name-->
	<div data-page="center.index" class="page pb60">
		<!-- Scrollable page content-->
		<div class="page-content">

			<div class="profile-containner">
					<div class="profile-name"></div>
					<div class="item-media">@if($sns_group->group_avatar)<img width="44" src="{{ Config::get('app.url').'/'.$sns_group->group_avatar  }}">@else<img width="44" src="/img/group_avatar_index.jpg">@endif</div>
			</div>
			<div class="list-block">
					<ul>
							<li>
								<a href="{{ route('group.viewitem', array($sns_group->id, 'member/admin')) }}" class="external item-link field-link">
									<div class="item-content">
										<div class="item-inner"> 
											<div class="item-title">团主/管理员</div>
											<div class="member-count">{{ $admin_cnt }}</div>
										</div>
									</div>
								</a>
							</li>
							<li>
								<a href="{{ route('group.viewitem', array($sns_group->id, 'member/member')) }}" class="external item-link field-link">
									<div class="item-content">
										<div class="item-inner"> 
											<div class="item-title">团成员</div>
											<div class="member-count ">{{ $member_cnt }}</div>
										</div>
									</div>
								</a>
							</li>
							<li>
								<a href="{{ route('group.viewitem', array($sns_group->id, 'textarea/group_intro')) }}" class="item-link field-link">
									<div class="item-content">
										<div class="item-inner"> 
											<div class="item-title label">团介绍</div>
										</div>
									</div>
								</a>
							</li>
							@if($sns_group_member && $sns_group_member->is_admin)
							<li>
								<a href="{{ route( 'group.setting', $sns_group->id) }}" class="external item-link">
									<div class="item-content">
										<div class="item-inner"> 
											<div class="item-title">设置</div>
										</div>
									</div>
								</a>
							</li>
							@endif	
					</ul>
			</div>
			<div class="list-block">
					@if($sns_group_member && ! $sns_group_member->is_admin )
					<a href="{{ route('group.quit', $sns_group->id) }}" class="button button-cancel button-round external">取消关注</a>
					@endif
			</div>
		</div>
	</div>
</div>
@include('widgets.toolbar', array('active'=>'sns'))
@stop